<?php

/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/7/10
 * Time: 10:23
 */

namespace app\admin\controller;

use think\Controller;

class Index extends Controller
{
    public function index()
    {
        return $this->fetch();
    }

    public function splice()
    {
        return $this->fetch();
    }


    //关于我们
    public function about()
    {
        $about = db('about')->select(function ($query) {
            $query->order('id desc');
        });
        if ($about) {
            foreach ($about as $k => $value) {
                $about[$k]['name'] = strip_tags($value['name']);
            }
        }
        $this->assign('about', '$about');
        return $this->fetch('index');

    }

    public function home()
    {
        return $this->fetch();
    }

}